* Find the common ancestor of @widget_a and @widget_b that
* is closest to the two widgets.
*
- * Returns: the closest common ancestor of @widget_a and
+ * Returns: (nullable): the closest common ancestor of @widget_a and
* @widget_b or %NULL if @widget_a and @widget_b do not
* share a common ancestor.
**/
*
* Returns the parent container of @widget.
*
- * Returns: (transfer none): the parent container of @widget, or %NULL
+ * Returns: (transfer none) (nullable): the parent container of @widget, or %NULL
**/
GtkWidget *
gtk_widget_get_parent (GtkWidget *widget)
* Returns the #cairo_font_options_t used for Pango rendering. When not set,
* the defaults font options for the #GdkScreen will be used.
*
- * Returns: (transfer none): the #cairo_font_options_t or %NULL if not set
+ * Returns: (transfer none) (nullable): the #cairo_font_options_t or %NULL if not set
*
* Since: 3.18
**/
*
* Gets the font map that has been set with gtk_widget_set_font_map().
*
- * Returns: (transfer none): A #PangoFontMap, or %NULL
+ * Returns: (transfer none) (nullable): A #PangoFontMap, or %NULL
*
* Since: 3.18
*/
* the application and should not be modified. The pixbuf should be freed
* after use with g_object_unref().
*
- * Returns: (transfer full): a new pixbuf, or %NULL if the
+ * Returns: (transfer full) (nullable): a new pixbuf, or %NULL if the
* stock ID wasn’t known
*
* Since: 3.0
* Note that unlike gtk_widget_is_ancestor(), gtk_widget_get_ancestor()
* considers @widget to be an ancestor of itself.
*
- * Returns: (transfer none): the ancestor widget, or %NULL if not found
+ * Returns: (transfer none) (nullable): the ancestor widget, or %NULL if not found
**/
GtkWidget*
gtk_widget_get_ancestor (GtkWidget *widget,
* @widget: a #GtkWidget
* @device: a #GdkDevice
*
- * Returns: the window of @widget that @device is in, or %NULL
+ * Returns: (nullable): the window of @widget that @device is in, or %NULL
*/
GdkWindow *
_gtk_widget_get_device_window (GtkWidget *widget,
* does not use the default way to create accessibles, %NULL will always be
* returned.
*
- * Returns: the accessible for @widget or %NULL if none has been
+ * Returns: (nullable): the accessible for @widget or %NULL if none has been
* created yet.
**/
AtkObject *
*
* Gets the contents of the tooltip for @widget.
*
- * Returns: the tooltip text, or %NULL. You should free the
+ * Returns: (nullable): the tooltip text, or %NULL. You should free the
* returned string with g_free() when done.
*
* Since: 2.12
*
* Gets the contents of the tooltip for @widget.
*
- * Returns: the tooltip text, or %NULL. You should free the
+ * Returns: (nullable): the tooltip text, or %NULL. You should free the
* returned string with g_free() when done.
*
* Since: 2.12